"""
Script for building the example.

Usage:
    python setup.py py2app
"""
from distutils.core import setup
import py2app

infoPlist = dict(
	CFBundleName='ExchangeBridge',
	#CFBundleIconFile='ShellEnv.icns',
	CFBundleGetInfoString='Exchange Bridge Panel',
	CFBundleVersion='0.1',
	CFBundleShortVersionString = '0.1',
	NSPrefPaneIconLabel='ExchangeBridge',
	NSPrefPaneIconFile='ExchangeBridge.icns',
	NSPrincipalClass='EnvironmentPane',
	NSMainNibFile='EnvironmentPane',
)

setup(
	plugin=['ShellEnv.py'],
	data_files=[
		"English.lproj", 
		"ExchangeBridge.icns",
		"owa.py",
		"popdaemon.py",
		'pop.py',
		'regxml.py',
		'owa.py',
		'daemon.py',
		'launcher.py',
		'settings.py',
		'macstuff.py',
		'template.plist',
		'smtp.py',
		'smtpdaemon.py'
	],
	options=dict(py2app=dict(
		extension=".prefPane",
		plist=infoPlist,
    )),
)
